#include<stdio.h>
#include<stdlib.h>
void bubble_sort(int q[],int sz ){
	int i=0;
	for(i=0;i<sz-1;i++){
		int j=0;
		for(j=0;j<sz-i-1;j++){
			if(q[j]>q[j+1]){
			int temp=0;
			temp=q[j+1];
			q[j+1]=q[j];
			q[j]=temp;
			}
		}
	}
}
int main(){
	int n=0;
	int q[]={1,3,4,5,6,7,9,2,4,6,8,10};
	int sz=sizeof(q)/sizeof(q[0]);
	bubble_sort(q,sz);
	
	for(n=0;n<sz;n++){
	printf("%d ",q[n]);
	}
	system("pause");
return 0;
}